package cuid.sc20.laboratory.domain;

import cuid.sc20.laboratory.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 权限对象 tb_permission
 *
 * @author ruoyi
 * @date 2023-06-30
 */
public class TbPermission extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 权限表主键 */
    private Long id;

    /** 菜单名称 */
    @Excel(name = "菜单名称")
    private String menuName;

    /** 英文菜单名称 */
    @Excel(name = "英文菜单名称")
    private String menuNameEn;

    /** 上层菜单 */
    @Excel(name = "上层菜单")
    private Long parentId;

    /** 前端页面组件路径 */
    @Excel(name = "前端页面组件路径")
    private String componentPath;

    /** 菜单图标 */
    @Excel(name = "菜单图标")
    private String icon;

    /** 后端接口访问路径 */
    @Excel(name = "后端接口访问路径")
    private String apiUrl;

    /** 菜单类型 1-父菜单 2-页面 3-按钮 */
    @Excel(name = "菜单类型 1-父菜单 2-页面 3-按钮")
    private Long menuType;

    /** 权限编码 */
    @Excel(name = "权限编码")
    private String permCode;

    /** 是否可见 1-是 0-否 */
    @Excel(name = "是否可见 1-是 0-否")
    private Long visible;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setMenuName(String menuName)
    {
        this.menuName = menuName;
    }

    public String getMenuName()
    {
        return menuName;
    }
    public void setMenuNameEn(String menuNameEn)
    {
        this.menuNameEn = menuNameEn;
    }

    public String getMenuNameEn()
    {
        return menuNameEn;
    }
    public void setParentId(Long parentId)
    {
        this.parentId = parentId;
    }

    public Long getParentId()
    {
        return parentId;
    }
    public void setComponentPath(String componentPath)
    {
        this.componentPath = componentPath;
    }

    public String getComponentPath()
    {
        return componentPath;
    }
    public void setIcon(String icon)
    {
        this.icon = icon;
    }

    public String getIcon()
    {
        return icon;
    }
    public void setApiUrl(String apiUrl)
    {
        this.apiUrl = apiUrl;
    }

    public String getApiUrl()
    {
        return apiUrl;
    }
    public void setMenuType(Long menuType)
    {
        this.menuType = menuType;
    }

    public Long getMenuType()
    {
        return menuType;
    }
    public void setPermCode(String permCode)
    {
        this.permCode = permCode;
    }

    public String getPermCode()
    {
        return permCode;
    }
    public void setVisible(Long visible)
    {
        this.visible = visible;
    }

    public Long getVisible()
    {
        return visible;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("menuName", getMenuName())
            .append("menuNameEn", getMenuNameEn())
            .append("parentId", getParentId())
            .append("componentPath", getComponentPath())
            .append("icon", getIcon())
            .append("apiUrl", getApiUrl())
            .append("menuType", getMenuType())
            .append("permCode", getPermCode())
            .append("visible", getVisible())
            .toString();
    }
}
